package com.tgy.dao;

import com.tgy.entity.Books;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.awt.print.Pageable;
import java.util.List;

@Repository
public interface BooksDao {

    public List<Books> getAllBooks();

    public int insert(Books book);

    public int update(Books book);

    public int deleteById(int id);

    public Books getBookById(int id);

    List<Books> query(Books book);
}

